package com.hj.tools;

import java.util.Collection;
import java.util.Map;
@SuppressWarnings("rawtypes")
public class ConnectionUtil {

	public static boolean isEmpty(Collection list){
		return list==null || list.size()<1;
	}
	
	public static boolean isNotEmpty(Collection list){
		return !isEmpty(list);
	}
	
	public static boolean isEmpty(Map map){
		return map==null || map.size()<1;
	}
	
	public static boolean isNotEmpty(Map map){
		return !isEmpty(map);
	}
	
	public static boolean isEmpty(Object ...arys){
		return arys==null || arys.length<1;
	}
	
	public static boolean isNotEmpty(Object ...arys){
		return !isEmpty(arys);
	}
}
